<?php echo form_open(base_url().'comment/edit'); ?>

	<input type="hidden" name="id" value="<?php echo isset($comment)&& !empty($comment->id) ? $comment->id : '' ?>" />
        <input type="hidden" name="lft" value="<?php echo isset($comment)&& !empty($comment->lft) ? $comment->rgt : '' ?>" />
        <input type="hidden" name="rgt" value="<?php echo isset($comment)&& !empty($comment->lft) ? $comment->lft : '' ?>" />
	<label>Titel</label>
	<input type="text" value="<?php echo isset($comment) ? $comment->title : '' ?>" name="title" />
	<br>
	
	<label>Text</label>
        <textarea cols="30" rows="5" name="text" ><?php echo isset($comment) ? $comment->text : '' ?></textarea>
	<br>
	
	<?php echo form_submit('submit','Update');  ?>
<?php echo form_close(); ?>
